<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>


<h3><%=request.getParameter("role")%>S</h3>
<html:form action="/userAction?role=${role}" method="POST">
	<p>
		<select multiple name="user">
			<c:forEach var="user" items="${users}">  
				<option value="${user.login}">${user.name}</option>
			</c:forEach>
		</select>
	</p>

	<input type="submit" value="Details">
	<br />
	<br />
	<c:if test="${user != null}">  

		<bean:message key="label.user" />${user.name}
		<br />
		<bean:message key="label.login" />${user.login}
		<br />
		<bean:message key="label.role" />${user.role.value}
		<br />
		<bean:message key="label.registrdate" />${user.registrationDate}

	</c:if>

</html:form>
